<div class='body_set clearfix'>
	<input type='hidden' id='infoPermission' />
	<div class='clearfix' id='onebox'>
		<div class='titlebox'>
			<div class='nav current cur_toggle monitorRight' id='monitorset'>监测方案配置</div>
			<div class='nav cur_toggle departRight' id='departset'>部门管理</div>
			<div class='nav cur_toggle accountRight' id='accountset'>账户管理</div>
			<div class='nav cur_toggle pwdRight' id='pwdset'>修改密码</div>
		</div>
		<!-- 监测方案配置 -->
		<div class='wrapbox cur_box monitorRight' id='monitorsetbox'>
			<div class="list_do">
				<div class="ui_btn" >
					<a href="javascript:void(0);" class="ui_btn" id="monitor_add">新增方案</a>
				</div>
			</div>
			<div class="list_content">
			    <table id="monitor_table" class="monitor_table">
			    	<tbody>
			    		<tr></tr>
			        </tbody>
				</table>
			</div>
			<div class='body_list clearfix' id='listDom'></div>
		</div>
		<!-- 账户管理 -->
		<div class='wrapbox hide cur_box accountRight' id='accountsetbox'>
			<div class="list_do">
				<div class="btn_do">
					<a href="javascript:;" class="ui_btn account_add"></a>
				</div>
			</div>
        	<div class="list_content">
           		<table id="account_table" class="monitor_table">
                	<tbody>
                    	<tr></tr>
                	</tbody>
            	</table>
        	</div>

			<div class='body_list clearfix' id='listDom'></div>		
		</div>
		<!-- 部门管理 -->
		<div class='wrapbox hide cur_box departRight' id='departsetbox'>
			<div class="list_do">
				<div class="btn_do">
					<a href="javascript:void(0);" class="ui_btn" id="department_add">新增部门</a>
				</div>
			</div>
			<div class="list_content">
			    <table id="department_table" class="monitor_table">
			    	<tbody>
			    		<tr></tr>
			        </tbody>
				</table>
			</div>
			<div class='body_list clearfix' id='listDom'></div>
		</div>
		<!-- 修改密码 -->
		<div class='wrapbox hide cur_box pwdRight' id='pwdsetbox'>
			
		</div>
	</div>
	<div class='clearfix hide twobox' id='twobox'>
		
	</div>
	
	<div class="ui-page clearfix">
        <span id="Pagination" class="pagination"></span>
    </div>
</div>
<!-- 修改密码 -->
<script type="text/html" id="changePwdFormTemplate">
<form id='changePwdForm' class='userpwdform validationEngineContainer'>
	<div class='formli'><span class='dot'>*</span><span class='liname'>原密码：</span><input type='password' id='pwd1' class='validate[required,minSize[6],maxSize[16]' placeholder='请输入原密码...'/></div>
	<div class='formli'><span class='dot'>*</span><span class='liname'>新密码：</span><input type='password' id='modifyPassword' class='validate[required,minSize[6],maxSize[16],custom[LetterNumberSymble]]]' placeholder='请输入新密码...'/></div>
	<div class='formli'><span class='dot'>*</span><span class='liname'>确认密码：</span><input type='password' id='pwd2' class='validate[required,minSize[6],maxSize[16],custom[LetterNumberSymble]]]' placeholder='请再次输入新密码...'/></div>
	<div class='btns'><span class='ui-btn ui-btn-cancel' id='doPwdCancel'>取消</span><span class='ui-btn ui-btn-ok' id='doPwdSave'>保存</span></div>
</form>
</script>

<!-- 新增或编辑监测方案 -->
<script type="text/html" id="monitorForm">
<div class='wrapbox clearfix'>
	<form id='setMonitorForm' class='form validationEngineContainer'>
		<input type='hidden' id='ifmId' name='ifmId' value='<%=ifmId%>'/>
		<div class='wrap clearfix'>
			<div class='name'><span class='dot'>*</span>方案名称:</div>
			<div class='value'>
				<input name='name' id='ifmName' value='<%=name%>' class='ui-text validate[required,maxSize[18]]' type='text' placeholder='单行输入'/>
				<span class='nametip' id='nametip'></span>
			</div>
		</div>
		<div class='wrap clearfix'>
			<div class='name'>是否敏感:</div>
			<input type="hidden" id="isSensitive"/>
			<div class='value'>
				<div class='checkdiv sc'><span class='iconfont' data-type='1'>&#xeeea;</span>是</div>
				<div class='checkdiv sc'><span class='iconfont checked' data-type='0'>&#xeeeb;</span>否</div>
			</div>
		</div>
		<div class='wrap clearfix'>
			<div class='name'><span class='dot'>*</span>匹配关键词:</div>
			<div class='value'>
				<textarea name='ifmGetkeyword' id='ifmGetKeyword' value='<%=ifmGetkeyword%>' class='validate[required,maxSize[5000]]' placeholder='多行输入'></textarea>
				<div class='tip'>此输入框只支持中文英文数字，和五种运算符号：| + ( ) \ 多个关键词用|（数学符号或）表示，如：A|B|C关键词组用+（数学符号+）表示，如：A+B,A+B+C括号调整逻辑关系层级</div>
			</div>
			<div class='name'></div>
			<div class='value checkboxwrap'>
				<div class='checkdiv mc'><span class='iconfont' id='onetitle'>&#xeeea;</span>匹配标题</div>
				<div class='checkdiv mc'><span class='iconfont' id='onecontent'>&#xeeea;</span>匹配正文</div>
				<div class='checkdiv ctip'>（<span class='dot'>*</span>必选一个或两个）</div>
			</div>
		</div>
		<div class='wrap clearfix'>
			<div class='name'>过滤关键词:</div>
			<div class='value'>
				<textarea name='ifmNotkeyword' id='ifmNotKeyword' value='<%=ifmNotkeyword%>' class='validate[maxSize[5000]]' placeholder='多行输入'></textarea>
				<div class='tip'>此输入框只支持中文英文数字，和四种运算符号：| + ()多个关键词用|（数学符号或）表示，如：A|B|C关键词组用+（数学符号+）表示，如：A+B,A+B+C括号调整逻辑关系层级</div>
			</div>
			<div class='name'></div>
			<div class='value'>
				<div class='checkdiv mc'><span class='iconfont' id='twotitle'>&#xeeea;</span>匹配标题</div>
				<div class='checkdiv mc'><span class='iconfont' id='twocontent'>&#xeeea;</span>匹配正文</div>
				<div class='checkdiv ctip'>（<span class='dot'>*</span>过滤关键词不为空时必选一个或两个）</div>
			</div>
		</div>
		<div class='wrap clearfix'>
			<div class='name'><span class='dot'>*</span>来源:</div>
			<div class='value'>
				<div class='checkdiv mc'><span class='iconfont' id='news'>&#xeeea;</span>新闻</div>
				<div class='checkdiv mc'><span class='iconfont' id='weixin'>&#xeeea;</span>微信</div>
				<div class='checkdiv mc'><span class='iconfont' id='weibo'>&#xeeea;</span>微博</div>
				<div class='checkdiv mc'><span class='iconfont' id='luntan'>&#xeeea;</span>论坛</div>
			</div>
		</div>
		<div class='wrap clearfix'>
			<div class='btns'>
				<div class='ui-btn ui-btn-cancel' id='monitorCancel'>返回</div>
				<div class='ui-btn ui-btn-ok' id='monitorSave'>保存</div>
			</div>
		</div>
	</form>
</div>
</script>

<!-- 新增组织 -->
<script type="text/html" id="companyForm">
<div class='wrapbox clearfix'>
	<form id='setAccountForm' class='form validationEngineContainer'>
		<div class='wrap clearfix'>
			<div class='name'><span class='dot'>*</span>组织名称:</div>
			<div class='value'>
				<input name='name' id='companyName' value='<%=name%>' class='ui-text validate[required,maxSize[30],custom[tags]]' type='text' placeholder='单行输入'/>
				<span class='nametip' id='nametip'></span>
			</div>
		</div>

		<div class='wrap clearfix'>
			<div class='btns'>
				<div class='ui-btn ui-btn-cancel' id='account_company_cancel'>返回</div>
				<div class='ui-btn ui-btn-ok' id='account_company_save'>保存</div>
			</div>
		</div>
	</form>
</div>
</script>

<!-- 新增管理员 -->
<script type="text/html" id="adminForm">
<div class='wrapbox clearfix'>
	<form id='setAccountForm' class='form validationEngineContainer'>
		<input type="hidden" id="hide_companyId" />
		<div class='wrap clearfix'>
			<div class='name'>组织名称:</div>
			<div class='value'>
				<input id='companyName' value='<%=companyName%>' class='ui-text' type='text' readonly/>
			</div>
		</div>
		<div class='wrap clearfix'>
			<div class='name'><span class='dot'>*</span>管理员账号:</div>
			<div class='value'>
				<input name='account' id='userAccount' class='ui-text validate[required,maxSize[18]]' type='text' placeholder='单行输入'/>
				<span class='nametip' id='nametip'></span>
			</div>
		</div>
		<div class='wrap clearfix'>
			<div class='name'><span class='dot'>*</span>管理员密码:</div>
			<div class='value'>
				<input name='password' id='userPwd' class='ui-text validate[required,minSize[6],maxSize[16],custom[LetterNumberSymble]]' type='password' placeholder='单行输入'/>
				<span class='nametip' id='nametip'></span>
			</div>
		</div>
		<div class='wrap clearfix'>
			<div class='name'><span class='dot'>*</span>确认密码:</div>
			<div class='value'>
				<input name='name' id='confirmPwd' class='ui-text validate[required,minSize[6],maxSize[16],custom[LetterNumberSymble]]' type='password' placeholder='单行输入'/>
				<span class='nametip' id='nametip'></span>
			</div>
		</div>

		<div class='wrap clearfix'>
			<div class='btns'>
				<div class='ui-btn ui-btn-cancel' id='account_company_cancel'>返回</div>
				<div class='ui-btn ui-btn-ok' id='account_admin_save'>保存</div>
			</div>
		</div>
	</form>
</div>
</script>

<!-- 新增部门 -->
<script type="text/html" id="departmentForm">
<div class='wrapbox clearfix'>
	<form id='setDepartmentForm' class='form validationEngineContainer'>
		<div class='wrap clearfix'>
			<div class='name'><span class='dot'>*</span>部门名称:</div>
			<div class='value'>
				<input name='name' id='departmentName' value='<%=name%>' class='ui-text validate[required,maxSize[30],custom[tags]]' type='text' placeholder='单行输入'/>
				<span class='nametip' id='nametip'></span>
			</div>
		</div>
		<div class='wrap clearfix'>
			<div class='btns'>
				<div class='ui-btn ui-btn-cancel' id='departmentCancel'>返回</div>
				<div class='ui-btn ui-btn-ok' id='departmentSave'>保存</div>
			</div>
		</div>
	</form>
</div>
</script>

<!-- 新增或编辑账号 -->
<script type="text/html" id="userForm">
<div class='wrapbox clearfix'>
	<form id='setAccountForm' class='form validationEngineContainer'>
		<input type='hidden' id='hide_userId'/>
		<input type='hidden' id='hide_departId'/>
		<div class='wrap clearfix'>
			<div class='name'><span class='dot'>*</span>账号:</div>
			<div class='value'>
				<input name='account' id='userAccount' class='ui-text validate[required,maxSize[30]]' type='text' placeholder='单行输入'/>
				<span class='nametip' id='nametip'></span>
			</div>
		</div>
		<div class='wrap clearfix'>
			<div class='name'><span class='dot'>*</span>姓名:</div>
			<div class='value'>
				<input name='account' id='userName' class='ui-text validate[required,maxSize[12],custom[tags]]' type='text' placeholder='单行输入'/>
				<span class='nametip' id='nametip'></span>
			</div>
		</div>
		<div class='wrap clearfix'>
			<div class='name'><span class='dot'>*</span>手机号:</div>
			<div class='value'>
				<input name='account' id='userPhone' class='ui-text validate[required,maxSize[11],custom[mobile]]]' type='text' placeholder='单行输入'/>
				<span class='nametip' id='nametip'></span>
			</div>
		</div>
		<div class='wrap clearfix'>
			<div class='name'><span class='dot'>*</span>部门:</div>
			<div class='value switchRight'>
				<div id="department_select" class="wrapper-dropdown">
					<span id="departName">-请选择-</span>
					<ul class="dropdown" id="dropdown">

					</ul>
				</div>
			</div>
		</div>
		<div class='wrap clearfix'>
			<div class='name'><span class='dot'>*</span>职位:</div>
			<div class='value'>
				<input name='name' id='userJob' class='ui-text validate[required,maxSize[30]]' type='text' placeholder='单行输入'/>
				<span class='nametip' id='nametip'></span>
			</div>
		</div>
		<div class='wrap clearfix'>
			<div class='name'><span class='dot'>*</span>权限:</div>
			<div class='value'>
				<div id="right_select" class="wrapper-dropdown">
					<span id="rightLevel">1</span>
					<ul class="dropdown">
						<li id="levelOne">1</li>
						<li id="levelTwo">2</li>
						<li id="levelThree">3</li>
					</ul>
				</div>
			</div>
		</div>

		<div class='wrap clearfix'>
			<div class='btns'>
				<div class='ui-btn ui-btn-cancel' id='account_user_cancel'>返回</div>
				<div class='ui-btn ui-btn-ok' id='account_user_save'>保存</div>
			</div>
		</div>
	</form>
</div>
</script>

<!-- 新增用户的部门选择 -->
<script type="text/html" id="userDepartLi">
	<li data-departId='<%=departId%>' data-departname='<%=departName%>'><%=departName%></li>
</script>
